<include file="Layout/header" />
<!-- <script type="text/javascript" src="__PUBLIC__/ueditor/ueditor.config.js"></script> -->
<!-- <script type="text/javascript" src="__PUBLIC__/ueditor/ueditor.all.min.js"></script> -->
<div class="mws-panel grid_8">
    <div class="mws-panel-header">
        <span><i class="icon-ok"></i> 文章添加</span>
    </div>
    <div class="mws-panel-body no-padding">
        <form id="mws-validate" class="mws-form" action="{:U('Article/add')}" method="post" novalidate="novalidate">
            <div id="mws-validate-error" class="mws-form-message error" style="display:none;"></div>
            <div class="mws-form-inline">
                <div class="mws-form-row">
                    <label class="mws-form-label">所属分类</label>
                    <div class="mws-form-item">
                        <select class="large" name="s_id">
                            <foreach name="data" item="v">
                                <option value="{$v['id']}">{$v['_html']}</option>
                            </foreach> 
                        </select>
                    </div>
                </div>
            </div>
            <div class="mws-form-inline">
                <div class="mws-form-row">
                    <label class="mws-form-label">文章标题</label>
                    <div class="mws-form-item">
                        <input type="text" name="title" class="required large">
                    </div>
                </div>

            </div>
            <div class="mws-form-inline">
                <div class="mws-form-row">
                    <label class="mws-form-label">作者</label>
                    <div class="mws-form-item">
                        <input type="text" name="writer" class="required large">
                    </div>
                </div>

            </div>
            <div class="mws-form-inline">
                <div class="mws-form-row">
                    <label class="mws-form-label">关键字</label>
                    <div class="mws-form-item">
                        <input type="text" name="keyword" class="required large">
                    </div>
                </div>

            </div>
            <div class="mws-form-inline">
                <div class="mws-form-row">
                    <label class="mws-form-label">顶置</label>
                    <div class="mws-form-item">
                        <input type="text" name="is_top" class="required large">
                    </div>
                </div>

            </div>
            <div class="mws-form-inline" >
                <div class="mws-form-row" >
                    <label class="mws-form-label">是否原创</label>
                    <div class="mws-form-item clearfix">
                        <ul class="mws-form-list inline">
                            <li><input type="radio" name="is_original" value="1"> <label>是</label></li>
                            <li><input type="radio" name="is_original" value="2"> <label>否</label></li>
                        </ul>
                    </div>
                </div>
                <div class="mws-form-row" >
                    <label class="mws-form-label">是否显示</label>
                    <div class="mws-form-item clearfix">
                        <ul class="mws-form-list inline">
                            <li><input type="radio" name="is_show" value="1"> <label>是</label></li>
                            <li><input type="radio" name="is_show" value="2"> <label>否</label></li>
                        </ul>
                    </div>
                </div>
            </div>
            <div class="mws-form-inline">

                <div class="mws-form-row">
                    <label class="mws-form-label">描述</label>
                    <div class="mws-form-item">
                        <textarea rows="" name="describe" cols="" class="large autosize" style="overflow: hidden; word-wrap: break-word; resize: none; height: 130px;"></textarea>
                    </div>
                </div>
            </div>
            <div class="mws-form-inline">

                <div class="mws-form-row">
                    <label class="mws-form-label">内容</label>
                    <div class="mws-form-item">	
                        <!-- 加载编辑器的容器 -->
                        <script id="container" name="content" type="text/plain" style="height: 500px;">

                        </script>
                        <!-- 配置文件 -->
                        <script type="text/javascript" src="__PUBLIC__/ueditor/ueditor.config.js"></script>
                        <!-- 编辑器源码文件 -->
                        <script type="text/javascript" src="__PUBLIC__/ueditor/ueditor.all.js"></script>
                        <!-- 实例化编辑器 -->
                        <script type="text/javascript">
                            var ue = UE.getEditor('container');
                        </script>

                    </div>
                </div>
            </div>


            <div class="mws-button-row">
                <input type="submit" class="btn btn-danger">
            </div>
        </form>
    </div>    	
</div>

<include file="Layout/footer"/>